<?php /*a:1:{s:61:"D:\wamp64\www\tpadmin\application\admin\view\album\index.html";i:1568169668;}*/ ?>
<div>
  <div class="main-title">
    <h2>图库管理</h2>
  </div>
  <div class="main-section">
    <form method="post" action="<?php echo url('sort'); ?>" class="j-form">
      <table class="table table-striped table-bordered table-hover">
        <thead>
          <tr>
            <th width="55">序号</th>
            <th>名称</th>
            <th>路径</th>
            <th width="100">操作</th>
          </tr>
        </thead>
        <tbody>
          <?php foreach($album as $v): ?>
          <tr>
            <td><small><?php echo htmlentities($v['sort']); ?></small></td>
            <td><small class="text-muted"><?php if($v['level']): ?>├──<?php endif; ?></small><a href="<?php echo url('show', ['album_id' => $v['id']]); ?>"><?php echo htmlentities($v['name']); ?></a></td>
            <td><?php echo htmlentities($v['path']); ?></td>
            <td><a href="<?php echo url('show', ['album_id' => $v['id']]); ?>">查看</a></td>
          </tr>          
          <?php endforeach; if(empty($album)): ?>
          <tr>
            <td colspan="4" class="text-center">还没有添加项目</td>
          </tr>
          <?php endif; ?>
        </tbody>
      </table>
    </form>
  </div>
</div>